import { View,WebView } from '@tarojs/components';
import { useEffect, useState } from 'react';
import Taro from '@tarojs/taro';
const baseCls = `legions-login-merge_requests`;

export default function GitlabWebView() {
    const [url,setUrl] = useState('');
    useEffect(() => {
        const params = Taro.getCurrentInstance()?.router?.params as { url: string };
        setUrl(params.url)
    },[])
    return <View className={baseCls}>
        {url&&<WebView src={url}></WebView>}
    </View>
}